﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel;
using System.Diagnostics;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Xml.Serialization;

namespace EC_Agent.HotelClass
{
    [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Web.Services.WebServiceBindingAttribute(Name = "HotelWSSoap", Namespace = "http://tempuri.org/")]
    public partial class HotelWS : System.Web.Services.Protocols.SoapHttpClientProtocol
    {

        private System.Threading.SendOrPostCallback DangNhapOperationCompleted;

        private System.Threading.SendOrPostCallback LayDSHangPhongOperationCompleted;

        private System.Threading.SendOrPostCallback LayDSLoaiPhongOperationCompleted;

        private System.Threading.SendOrPostCallback LayDSLoaiPhongTheoHangPhongOperationCompleted;

        private System.Threading.SendOrPostCallback LaySoLuongPhongTrongOperationCompleted;

        private System.Threading.SendOrPostCallback LayGiaThanhOperationCompleted;

        private System.Threading.SendOrPostCallback LayDSLoaiHangPhongHoTroOperationCompleted;

        private System.Threading.SendOrPostCallback DatPhongMoRongOperationCompleted;

        /// <remarks/>
        public HotelWS(string url)
        {
            this.Url = url;
        }

        /// <remarks/>
        public event DangNhapCompletedEventHandler DangNhapCompleted;

        /// <remarks/>
        public event LayDSHangPhongCompletedEventHandler LayDSHangPhongCompleted;

        /// <remarks/>
        public event LayDSLoaiPhongCompletedEventHandler LayDSLoaiPhongCompleted;

        /// <remarks/>
        public event LayDSLoaiPhongTheoHangPhongCompletedEventHandler LayDSLoaiPhongTheoHangPhongCompleted;

        /// <remarks/>
        public event LaySoLuongPhongTrongCompletedEventHandler LaySoLuongPhongTrongCompleted;

        /// <remarks/>
        public event LayGiaThanhCompletedEventHandler LayGiaThanhCompleted;

        /// <remarks/>
        public event LayDSLoaiHangPhongHoTroCompletedEventHandler LayDSLoaiHangPhongHoTroCompleted;

        /// <remarks/>
        public event DatPhongMoRongCompletedEventHandler DatPhongMoRongCompleted;

        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/DangNhap", RequestNamespace = "http://tempuri.org/", ResponseNamespace = "http://tempuri.org/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public bool DangNhap(string username, string password)
        {
            object[] results = this.Invoke("DangNhap", new object[] {
                    username,
                    password});
            return ((bool)(results[0]));
        }

        /// <remarks/>
        public System.IAsyncResult BeginDangNhap(string username, string password, System.AsyncCallback callback, object asyncState)
        {
            return this.BeginInvoke("DangNhap", new object[] {
                    username,
                    password}, callback, asyncState);
        }

        /// <remarks/>
        public bool EndDangNhap(System.IAsyncResult asyncResult)
        {
            object[] results = this.EndInvoke(asyncResult);
            return ((bool)(results[0]));
        }

        /// <remarks/>
        public void DangNhapAsync(string username, string password)
        {
            this.DangNhapAsync(username, password, null);
        }

        /// <remarks/>
        public void DangNhapAsync(string username, string password, object userState)
        {
            if ((this.DangNhapOperationCompleted == null))
            {
                this.DangNhapOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDangNhapOperationCompleted);
            }
            this.InvokeAsync("DangNhap", new object[] {
                    username,
                    password}, this.DangNhapOperationCompleted, userState);
        }

        private void OnDangNhapOperationCompleted(object arg)
        {
            if ((this.DangNhapCompleted != null))
            {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.DangNhapCompleted(this, new DangNhapCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/LayDSHangPhong", RequestNamespace = "http://tempuri.org/", ResponseNamespace = "http://tempuri.org/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public HangPhong[] LayDSHangPhong()
        {
            object[] results = this.Invoke("LayDSHangPhong", new object[0]);
            return ((HangPhong[])(results[0]));
        }

        /// <remarks/>
        public System.IAsyncResult BeginLayDSHangPhong(System.AsyncCallback callback, object asyncState)
        {
            return this.BeginInvoke("LayDSHangPhong", new object[0], callback, asyncState);
        }

        /// <remarks/>
        public HangPhong[] EndLayDSHangPhong(System.IAsyncResult asyncResult)
        {
            object[] results = this.EndInvoke(asyncResult);
            return ((HangPhong[])(results[0]));
        }

        /// <remarks/>
        public void LayDSHangPhongAsync()
        {
            this.LayDSHangPhongAsync(null);
        }

        /// <remarks/>
        public void LayDSHangPhongAsync(object userState)
        {
            if ((this.LayDSHangPhongOperationCompleted == null))
            {
                this.LayDSHangPhongOperationCompleted = new System.Threading.SendOrPostCallback(this.OnLayDSHangPhongOperationCompleted);
            }
            this.InvokeAsync("LayDSHangPhong", new object[0], this.LayDSHangPhongOperationCompleted, userState);
        }

        private void OnLayDSHangPhongOperationCompleted(object arg)
        {
            if ((this.LayDSHangPhongCompleted != null))
            {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.LayDSHangPhongCompleted(this, new LayDSHangPhongCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/LayDSLoaiPhong", RequestNamespace = "http://tempuri.org/", ResponseNamespace = "http://tempuri.org/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public LoaiPhong[] LayDSLoaiPhong()
        {
            object[] results = this.Invoke("LayDSLoaiPhong", new object[0]);
            return ((LoaiPhong[])(results[0]));
        }

        /// <remarks/>
        public System.IAsyncResult BeginLayDSLoaiPhong(System.AsyncCallback callback, object asyncState)
        {
            return this.BeginInvoke("LayDSLoaiPhong", new object[0], callback, asyncState);
        }

        /// <remarks/>
        public LoaiPhong[] EndLayDSLoaiPhong(System.IAsyncResult asyncResult)
        {
            object[] results = this.EndInvoke(asyncResult);
            return ((LoaiPhong[])(results[0]));
        }

        /// <remarks/>
        public void LayDSLoaiPhongAsync()
        {
            this.LayDSLoaiPhongAsync(null);
        }

        /// <remarks/>
        public void LayDSLoaiPhongAsync(object userState)
        {
            if ((this.LayDSLoaiPhongOperationCompleted == null))
            {
                this.LayDSLoaiPhongOperationCompleted = new System.Threading.SendOrPostCallback(this.OnLayDSLoaiPhongOperationCompleted);
            }
            this.InvokeAsync("LayDSLoaiPhong", new object[0], this.LayDSLoaiPhongOperationCompleted, userState);
        }

        private void OnLayDSLoaiPhongOperationCompleted(object arg)
        {
            if ((this.LayDSLoaiPhongCompleted != null))
            {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.LayDSLoaiPhongCompleted(this, new LayDSLoaiPhongCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/LayDSLoaiPhongTheoHangPhong", RequestNamespace = "http://tempuri.org/", ResponseNamespace = "http://tempuri.org/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public LoaiPhong[] LayDSLoaiPhongTheoHangPhong(int MaHangPhong)
        {
            object[] results = this.Invoke("LayDSLoaiPhongTheoHangPhong", new object[] {
                    MaHangPhong});
            return ((LoaiPhong[])(results[0]));
        }

        /// <remarks/>
        public System.IAsyncResult BeginLayDSLoaiPhongTheoHangPhong(int MaHangPhong, System.AsyncCallback callback, object asyncState)
        {
            return this.BeginInvoke("LayDSLoaiPhongTheoHangPhong", new object[] {
                    MaHangPhong}, callback, asyncState);
        }

        /// <remarks/>
        public LoaiPhong[] EndLayDSLoaiPhongTheoHangPhong(System.IAsyncResult asyncResult)
        {
            object[] results = this.EndInvoke(asyncResult);
            return ((LoaiPhong[])(results[0]));
        }

        /// <remarks/>
        public void LayDSLoaiPhongTheoHangPhongAsync(int MaHangPhong)
        {
            this.LayDSLoaiPhongTheoHangPhongAsync(MaHangPhong, null);
        }

        /// <remarks/>
        public void LayDSLoaiPhongTheoHangPhongAsync(int MaHangPhong, object userState)
        {
            if ((this.LayDSLoaiPhongTheoHangPhongOperationCompleted == null))
            {
                this.LayDSLoaiPhongTheoHangPhongOperationCompleted = new System.Threading.SendOrPostCallback(this.OnLayDSLoaiPhongTheoHangPhongOperationCompleted);
            }
            this.InvokeAsync("LayDSLoaiPhongTheoHangPhong", new object[] {
                    MaHangPhong}, this.LayDSLoaiPhongTheoHangPhongOperationCompleted, userState);
        }

        private void OnLayDSLoaiPhongTheoHangPhongOperationCompleted(object arg)
        {
            if ((this.LayDSLoaiPhongTheoHangPhongCompleted != null))
            {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.LayDSLoaiPhongTheoHangPhongCompleted(this, new LayDSLoaiPhongTheoHangPhongCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/LaySoLuongPhongTrong", RequestNamespace = "http://tempuri.org/", ResponseNamespace = "http://tempuri.org/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public int LaySoLuongPhongTrong(int MaLoaiPhong, int MaHangPhong, System.DateTime NgayBD, System.DateTime NgayKT)
        {
            object[] results = this.Invoke("LaySoLuongPhongTrong", new object[] {
                    MaLoaiPhong,
                    MaHangPhong,
                    NgayBD,
                    NgayKT});
            return ((int)(results[0]));
        }

        /// <remarks/>
        public System.IAsyncResult BeginLaySoLuongPhongTrong(int MaLoaiPhong, int MaHangPhong, System.DateTime NgayBD, System.DateTime NgayKT, System.AsyncCallback callback, object asyncState)
        {
            return this.BeginInvoke("LaySoLuongPhongTrong", new object[] {
                    MaLoaiPhong,
                    MaHangPhong,
                    NgayBD,
                    NgayKT}, callback, asyncState);
        }

        /// <remarks/>
        public int EndLaySoLuongPhongTrong(System.IAsyncResult asyncResult)
        {
            object[] results = this.EndInvoke(asyncResult);
            return ((int)(results[0]));
        }

        /// <remarks/>
        public void LaySoLuongPhongTrongAsync(int MaLoaiPhong, int MaHangPhong, System.DateTime NgayBD, System.DateTime NgayKT)
        {
            this.LaySoLuongPhongTrongAsync(MaLoaiPhong, MaHangPhong, NgayBD, NgayKT, null);
        }

        /// <remarks/>
        public void LaySoLuongPhongTrongAsync(int MaLoaiPhong, int MaHangPhong, System.DateTime NgayBD, System.DateTime NgayKT, object userState)
        {
            if ((this.LaySoLuongPhongTrongOperationCompleted == null))
            {
                this.LaySoLuongPhongTrongOperationCompleted = new System.Threading.SendOrPostCallback(this.OnLaySoLuongPhongTrongOperationCompleted);
            }
            this.InvokeAsync("LaySoLuongPhongTrong", new object[] {
                    MaLoaiPhong,
                    MaHangPhong,
                    NgayBD,
                    NgayKT}, this.LaySoLuongPhongTrongOperationCompleted, userState);
        }

        private void OnLaySoLuongPhongTrongOperationCompleted(object arg)
        {
            if ((this.LaySoLuongPhongTrongCompleted != null))
            {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.LaySoLuongPhongTrongCompleted(this, new LaySoLuongPhongTrongCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/LayGiaThanh", RequestNamespace = "http://tempuri.org/", ResponseNamespace = "http://tempuri.org/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public int LayGiaThanh(int MaLoaiPhong, int MaHangPhong)
        {
            object[] results = this.Invoke("LayGiaThanh", new object[] {
                    MaLoaiPhong,
                    MaHangPhong});
            return ((int)(results[0]));
        }

        /// <remarks/>
        public System.IAsyncResult BeginLayGiaThanh(int MaLoaiPhong, int MaHangPhong, System.AsyncCallback callback, object asyncState)
        {
            return this.BeginInvoke("LayGiaThanh", new object[] {
                    MaLoaiPhong,
                    MaHangPhong}, callback, asyncState);
        }

        /// <remarks/>
        public int EndLayGiaThanh(System.IAsyncResult asyncResult)
        {
            object[] results = this.EndInvoke(asyncResult);
            return ((int)(results[0]));
        }

        /// <remarks/>
        public void LayGiaThanhAsync(int MaLoaiPhong, int MaHangPhong)
        {
            this.LayGiaThanhAsync(MaLoaiPhong, MaHangPhong, null);
        }

        /// <remarks/>
        public void LayGiaThanhAsync(int MaLoaiPhong, int MaHangPhong, object userState)
        {
            if ((this.LayGiaThanhOperationCompleted == null))
            {
                this.LayGiaThanhOperationCompleted = new System.Threading.SendOrPostCallback(this.OnLayGiaThanhOperationCompleted);
            }
            this.InvokeAsync("LayGiaThanh", new object[] {
                    MaLoaiPhong,
                    MaHangPhong}, this.LayGiaThanhOperationCompleted, userState);
        }

        private void OnLayGiaThanhOperationCompleted(object arg)
        {
            if ((this.LayGiaThanhCompleted != null))
            {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.LayGiaThanhCompleted(this, new LayGiaThanhCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/LayDSLoaiHangPhongHoTro", RequestNamespace = "http://tempuri.org/", ResponseNamespace = "http://tempuri.org/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public LoaiHangPhong[] LayDSLoaiHangPhongHoTro(System.DateTime NgayBD, System.DateTime NgayKT)
        {
            object[] results = this.Invoke("LayDSLoaiHangPhongHoTro", new object[] {
                    NgayBD,
                    NgayKT});
            return ((LoaiHangPhong[])(results[0]));
        }

        /// <remarks/>
        public System.IAsyncResult BeginLayDSLoaiHangPhongHoTro(System.DateTime NgayBD, System.DateTime NgayKT, System.AsyncCallback callback, object asyncState)
        {
            return this.BeginInvoke("LayDSLoaiHangPhongHoTro", new object[] {
                    NgayBD,
                    NgayKT}, callback, asyncState);
        }

        /// <remarks/>
        public LoaiHangPhong[] EndLayDSLoaiHangPhongHoTro(System.IAsyncResult asyncResult)
        {
            object[] results = this.EndInvoke(asyncResult);
            return ((LoaiHangPhong[])(results[0]));
        }

        /// <remarks/>
        public void LayDSLoaiHangPhongHoTroAsync(System.DateTime NgayBD, System.DateTime NgayKT)
        {
            this.LayDSLoaiHangPhongHoTroAsync(NgayBD, NgayKT, null);
        }

        /// <remarks/>
        public void LayDSLoaiHangPhongHoTroAsync(System.DateTime NgayBD, System.DateTime NgayKT, object userState)
        {
            if ((this.LayDSLoaiHangPhongHoTroOperationCompleted == null))
            {
                this.LayDSLoaiHangPhongHoTroOperationCompleted = new System.Threading.SendOrPostCallback(this.OnLayDSLoaiHangPhongHoTroOperationCompleted);
            }
            this.InvokeAsync("LayDSLoaiHangPhongHoTro", new object[] {
                    NgayBD,
                    NgayKT}, this.LayDSLoaiHangPhongHoTroOperationCompleted, userState);
        }

        private void OnLayDSLoaiHangPhongHoTroOperationCompleted(object arg)
        {
            if ((this.LayDSLoaiHangPhongHoTroCompleted != null))
            {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.LayDSLoaiHangPhongHoTroCompleted(this, new LayDSLoaiHangPhongHoTroCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/DatPhongMoRong", RequestNamespace = "http://tempuri.org/", ResponseNamespace = "http://tempuri.org/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public int[] DatPhongMoRong(LoaiHangPhong[] DSLoaiHangPhong, int MaNguoiThue, System.DateTime NgayBD, System.DateTime NgayKT, int MaGiamGia, int TrangThaiThue)
        {
            object[] results = this.Invoke("DatPhongMoRong", new object[] {
                    DSLoaiHangPhong,
                    MaNguoiThue,
                    NgayBD,
                    NgayKT,
                    MaGiamGia,
                    TrangThaiThue});
            return ((int[])(results[0]));
        }

        /// <remarks/>
        public System.IAsyncResult BeginDatPhongMoRong(LoaiHangPhong[] DSLoaiHangPhong, int MaNguoiThue, System.DateTime NgayBD, System.DateTime NgayKT, int MaGiamGia, int TrangThaiThue, System.AsyncCallback callback, object asyncState)
        {
            return this.BeginInvoke("DatPhongMoRong", new object[] {
                    DSLoaiHangPhong,
                    MaNguoiThue,
                    NgayBD,
                    NgayKT,
                    MaGiamGia,
                    TrangThaiThue}, callback, asyncState);
        }

        /// <remarks/>
        public int[] EndDatPhongMoRong(System.IAsyncResult asyncResult)
        {
            object[] results = this.EndInvoke(asyncResult);
            return ((int[])(results[0]));
        }

        /// <remarks/>
        public void DatPhongMoRongAsync(LoaiHangPhong[] DSLoaiHangPhong, int MaNguoiThue, System.DateTime NgayBD, System.DateTime NgayKT, int MaGiamGia, int TrangThaiThue)
        {
            this.DatPhongMoRongAsync(DSLoaiHangPhong, MaNguoiThue, NgayBD, NgayKT, MaGiamGia, TrangThaiThue, null);
        }

        /// <remarks/>
        public void DatPhongMoRongAsync(LoaiHangPhong[] DSLoaiHangPhong, int MaNguoiThue, System.DateTime NgayBD, System.DateTime NgayKT, int MaGiamGia, int TrangThaiThue, object userState)
        {
            if ((this.DatPhongMoRongOperationCompleted == null))
            {
                this.DatPhongMoRongOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDatPhongMoRongOperationCompleted);
            }
            this.InvokeAsync("DatPhongMoRong", new object[] {
                    DSLoaiHangPhong,
                    MaNguoiThue,
                    NgayBD,
                    NgayKT,
                    MaGiamGia,
                    TrangThaiThue}, this.DatPhongMoRongOperationCompleted, userState);
        }

        private void OnDatPhongMoRongOperationCompleted(object arg)
        {
            if ((this.DatPhongMoRongCompleted != null))
            {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.DatPhongMoRongCompleted(this, new DatPhongMoRongCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        public new void CancelAsync(object userState)
        {
            base.CancelAsync(userState);
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://tempuri.org/")]
    public partial class HangPhong
    {

        private int maHangPhongField;

        private string tenHangPhongField;

        private string moTaField;

        /// <remarks/>
        public int MaHangPhong
        {
            get
            {
                return this.maHangPhongField;
            }
            set
            {
                this.maHangPhongField = value;
            }
        }

        /// <remarks/>
        public string TenHangPhong
        {
            get
            {
                return this.tenHangPhongField;
            }
            set
            {
                this.tenHangPhongField = value;
            }
        }

        /// <remarks/>
        public string MoTa
        {
            get
            {
                return this.moTaField;
            }
            set
            {
                this.moTaField = value;
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://tempuri.org/")]
    public partial class LoaiHangPhong
    {

        private int maLoaiPhongField;

        private int maHangPhongField;

        private int soLuongField;

        private int giaPhongField;

        private int[] dsPhongField;

        /// <remarks/>
        public int MaLoaiPhong
        {
            get
            {
                return this.maLoaiPhongField;
            }
            set
            {
                this.maLoaiPhongField = value;
            }
        }

        /// <remarks/>
        public int MaHangPhong
        {
            get
            {
                return this.maHangPhongField;
            }
            set
            {
                this.maHangPhongField = value;
            }
        }

        /// <remarks/>
        public int SoLuong
        {
            get
            {
                return this.soLuongField;
            }
            set
            {
                this.soLuongField = value;
            }
        }

        /// <remarks/>
        public int GiaPhong
        {
            get
            {
                return this.giaPhongField;
            }
            set
            {
                this.giaPhongField = value;
            }
        }

        /// <remarks/>
        public int[] DsPhong
        {
            get
            {
                return this.dsPhongField;
            }
            set
            {
                this.dsPhongField = value;
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://tempuri.org/")]
    public partial class LoaiPhong
    {

        private int maLoaiPhongField;

        private string tenLoaiPhongField;

        private string moTaField;

        private int soNguoiField;

        /// <remarks/>
        public int MaLoaiPhong
        {
            get
            {
                return this.maLoaiPhongField;
            }
            set
            {
                this.maLoaiPhongField = value;
            }
        }

        /// <remarks/>
        public string TenLoaiPhong
        {
            get
            {
                return this.tenLoaiPhongField;
            }
            set
            {
                this.tenLoaiPhongField = value;
            }
        }

        /// <remarks/>
        public string MoTa
        {
            get
            {
                return this.moTaField;
            }
            set
            {
                this.moTaField = value;
            }
        }

        /// <remarks/>
        public int SoNguoi
        {
            get
            {
                return this.soNguoiField;
            }
            set
            {
                this.soNguoiField = value;
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")]
    public delegate void DangNhapCompletedEventHandler(object sender, DangNhapCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class DangNhapCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
    {

        private object[] results;

        internal DangNhapCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
            base(exception, cancelled, userState)
        {
            this.results = results;
        }

        /// <remarks/>
        public bool Result
        {
            get
            {
                this.RaiseExceptionIfNecessary();
                return ((bool)(this.results[0]));
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")]
    public delegate void LayDSHangPhongCompletedEventHandler(object sender, LayDSHangPhongCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class LayDSHangPhongCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
    {

        private object[] results;

        internal LayDSHangPhongCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
            base(exception, cancelled, userState)
        {
            this.results = results;
        }

        /// <remarks/>
        public HangPhong[] Result
        {
            get
            {
                this.RaiseExceptionIfNecessary();
                return ((HangPhong[])(this.results[0]));
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")]
    public delegate void LayDSLoaiPhongCompletedEventHandler(object sender, LayDSLoaiPhongCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class LayDSLoaiPhongCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
    {

        private object[] results;

        internal LayDSLoaiPhongCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
            base(exception, cancelled, userState)
        {
            this.results = results;
        }

        /// <remarks/>
        public LoaiPhong[] Result
        {
            get
            {
                this.RaiseExceptionIfNecessary();
                return ((LoaiPhong[])(this.results[0]));
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")]
    public delegate void LayDSLoaiPhongTheoHangPhongCompletedEventHandler(object sender, LayDSLoaiPhongTheoHangPhongCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class LayDSLoaiPhongTheoHangPhongCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
    {

        private object[] results;

        internal LayDSLoaiPhongTheoHangPhongCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
            base(exception, cancelled, userState)
        {
            this.results = results;
        }

        /// <remarks/>
        public LoaiPhong[] Result
        {
            get
            {
                this.RaiseExceptionIfNecessary();
                return ((LoaiPhong[])(this.results[0]));
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")]
    public delegate void LaySoLuongPhongTrongCompletedEventHandler(object sender, LaySoLuongPhongTrongCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class LaySoLuongPhongTrongCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
    {

        private object[] results;

        internal LaySoLuongPhongTrongCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
            base(exception, cancelled, userState)
        {
            this.results = results;
        }

        /// <remarks/>
        public int Result
        {
            get
            {
                this.RaiseExceptionIfNecessary();
                return ((int)(this.results[0]));
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")]
    public delegate void LayGiaThanhCompletedEventHandler(object sender, LayGiaThanhCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class LayGiaThanhCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
    {

        private object[] results;

        internal LayGiaThanhCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
            base(exception, cancelled, userState)
        {
            this.results = results;
        }

        /// <remarks/>
        public int Result
        {
            get
            {
                this.RaiseExceptionIfNecessary();
                return ((int)(this.results[0]));
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")]
    public delegate void LayDSLoaiHangPhongHoTroCompletedEventHandler(object sender, LayDSLoaiHangPhongHoTroCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class LayDSLoaiHangPhongHoTroCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
    {

        private object[] results;

        internal LayDSLoaiHangPhongHoTroCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
            base(exception, cancelled, userState)
        {
            this.results = results;
        }

        /// <remarks/>
        public LoaiHangPhong[] Result
        {
            get
            {
                this.RaiseExceptionIfNecessary();
                return ((LoaiHangPhong[])(this.results[0]));
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")]
    public delegate void DatPhongMoRongCompletedEventHandler(object sender, DatPhongMoRongCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class DatPhongMoRongCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
    {

        private object[] results;

        internal DatPhongMoRongCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
            base(exception, cancelled, userState)
        {
            this.results = results;
        }

        /// <remarks/>
        public int[] Result
        {
            get
            {
                this.RaiseExceptionIfNecessary();
                return ((int[])(this.results[0]));
            }
        }
    }
}